import requests
'''
curl -X POST 'http://116.62.130.29/v1/workflows/run' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "inputs": {},
    "response_mode": "streaming",
    "user": "abc-123"
}'
'''

url = 'http://116.62.130.29/v1/workflows/run'
headers = {
    'Authorization': 'Bearer ',  # Replace {api_key} with your actual API key
     'Content-Type': 'application/json'
}
data = {
    "inputs": {
    "files":
    [
      {
      "transfer_method": "local_file",
      "upload_file_id": "f9946639-b1d2-4152-ae38-ad5fa070f296",
      "type": "document"
      }
    ]
  },
    "user": "abc-123"
}

res = requests.post(url,headers=headers,json=data)
print(res.text)
print(res.json())